package com.mou.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mou.entity.Verify;
import com.mou.mapper.VerifyMapper;
import com.mou.service.VerifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("verifyService")
public class VerifyServiceImpl extends ServiceImpl<VerifyMapper, Verify> implements VerifyService {
    @Autowired
    private VerifyMapper verifyMapper;

    @Override
    public List<Verify> getByUserId(Integer currentId) {
        if (currentId != null) {
            return verifyMapper.getByUserId(currentId);
        }
        return null;
    }
}
